package TestExtentd;

public class HardDisk {
    int capacity;
    String interfaceType;
    HardDisk(int capacity, String interfaceType){
        this.capacity = capacity;
        this.interfaceType = interfaceType;
    }
    int getCapacity(){
        return capacity;
    }
    String getInterfaceType(){
        return interfaceType;
    }
    void readWrite(){
        System.out.println("固态运作正常");
    }
}
